# Ubuntu 22.04 下使用
# 原文: https://blog.csdn.net/AWNUXCVBN/article/details/126456365
# 直接从官网下载的deb安装后会出现问题，比如，hub界面打不开、无法创建证书，无法激活等问题
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.10_amd64.deb
sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.10_amd64.deb
sudo sh -c 'echo "deb https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'
wget -qO - https://hub.unity3d.com/linux/keys/public | sudo tee /etc/apt/trusted.gpg.d/unityhub.asc

# 安装 Unity Hub
sudo apt update
sudo apt install unityhub

# 卸载 Unity Hub
# sudo apt remove unityhub